using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_ItemDetailMap : EntityTypeConfiguration<t_ItemDetail>
    {
        public t_ItemDetailMap()
        {
            // Primary Key
            this.HasKey(t => t.FDetailID);

            // Properties
            this.Property(t => t.FDetailID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("t_ItemDetail");
            this.Property(t => t.FDetailID).HasColumnName("FDetailID");
            this.Property(t => t.FDetailCount).HasColumnName("FDetailCount");
            this.Property(t => t.F1).HasColumnName("F1");
            this.Property(t => t.F2).HasColumnName("F2");
            this.Property(t => t.F3).HasColumnName("F3");
            this.Property(t => t.F4).HasColumnName("F4");
            this.Property(t => t.F5).HasColumnName("F5");
            this.Property(t => t.F8).HasColumnName("F8");
            this.Property(t => t.F9).HasColumnName("F9");
            this.Property(t => t.F10).HasColumnName("F10");
            this.Property(t => t.F14).HasColumnName("F14");
            this.Property(t => t.F2001).HasColumnName("F2001");
            this.Property(t => t.F2002).HasColumnName("F2002");
            this.Property(t => t.F2003).HasColumnName("F2003");
            this.Property(t => t.F2004).HasColumnName("F2004");
            this.Property(t => t.F2014).HasColumnName("F2014");
            this.Property(t => t.F2023).HasColumnName("F2023");
            this.Property(t => t.F2021).HasColumnName("F2021");
            this.Property(t => t.F2024).HasColumnName("F2024");
            this.Property(t => t.F2026).HasColumnName("F2026");
            this.Property(t => t.F2027).HasColumnName("F2027");
            this.Property(t => t.F2028).HasColumnName("F2028");
            this.Property(t => t.F2029).HasColumnName("F2029");
            this.Property(t => t.F2030).HasColumnName("F2030");
            this.Property(t => t.F3001).HasColumnName("F3001");
            this.Property(t => t.F3002).HasColumnName("F3002");
            this.Property(t => t.F3003).HasColumnName("F3003");
            this.Property(t => t.F3004).HasColumnName("F3004");
            this.Property(t => t.F3005).HasColumnName("F3005");
            this.Property(t => t.F3006).HasColumnName("F3006");
            this.Property(t => t.F3007).HasColumnName("F3007");
            this.Property(t => t.F3008).HasColumnName("F3008");
            this.Property(t => t.F3009).HasColumnName("F3009");
            this.Property(t => t.F3010).HasColumnName("F3010");
            this.Property(t => t.F3011).HasColumnName("F3011");
        }
    }
}
